import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class ShopexService {

  constructor(private http: _HttpClient) { }

  queryList(paging: any): Observable<any> {
    const url = "/inner/shops?pageStart=1&pageSize=500";
    return this.http.get(url); 
  }

  getShopQrCode(data: any): Observable<any> {
    const url = "/inner/wxacodeunlimit";
    return this.http.post(url, data);
  }

  deleteShop(data: any): Observable<any> {
    const url = "/user/delete/" + data;
    return this.http.get(url);
  }

  getModuleList(): Observable<any> {
    return this.http.get("/microprogram/shopModule");
  }
}
